package cn.hl.hm.dao;

import cn.hl.hm.entity.Driver;
import cn.hl.hm.entity.DriverAmountInfo;
import cn.hl.hm.entity.OrderVO;
import cn.hl.hm.util.paging.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DriverMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Driver record);

    int insertSelective(Driver record);

    Driver selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Driver record);

    int updateByPrimaryKey(Driver record);
    List<Driver> selectDriver(Driver record);
    /**
	 * 获取司机列表
	 * @param driver
	 * @return
	 */
	List<Driver> selectDriverInfo(Driver driver);

	List<Driver> selectDriverInfoListPage(PageInfo pageInfo);

	  OrderVO selectOrderOtherInfo(Integer driverId);
	  public List<Driver> selectDriverInfoForVehiclePrice(Driver driver);
	  
	  
	int selectDriverCount(Driver record);
	
	DriverAmountInfo selectDriverHistory(Integer driverId);

	List<Driver> selectListByIds(@Param("ids") List<Integer> ids);
}